<?php
$server='localhost';
$unam="root";
$umm="root";
$db="maxik";
$con=mysqli_connect($server,$unam,$umm,$db);
$ll = "select * from upload";
$kaldi = mysqli_query($con, $ll);
?>

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>

<table border="1">
    <tr>
        <th>id</th>
        <th>name</th>
        <th>头像</th>
        <th>yax</th>
        <th>ads</th>
        <th>jinis</th>
        <th>删除</th>
    </tr>
    <?php
    while ($kur = mysqli_fetch_assoc($kaldi)) {
        $id = $kur['id'];
        echo "<tr>";
        echo "<td>" . $kur['id'] . "</td>";
        echo "<td>" . $kur['name'] . "</td>";
        echo "<td><img style='width: 60px;height: 60px;border-radius: 50%' src='" . $kur['img'] . "' alt=''></td>";
        echo "<td>" . $kur['age'] . "</td>";
        echo "<td>" . $kur['ads'] . "</td>";
        echo "<td>" . $kur['sex'] . "</td>";
        echo "<td> <a href='04.php?id=$id'> 删除 </a></td>";

        echo "</tr> ";

    } mysqli_close($con);

    ?>

</table>

</body>
</html>